﻿namespace ZenSystemService.Api.DTOs
{
    public class CreateTraineeOrderDTO
    {
        /// <summary>
        /// 机构ID
        /// </summary>
        public int InstitutionId { get; set; }


        /// <summary>
        /// 学员ID（主账号ID）
        /// </summary>
        public int TraineeId { get; set; }

        public decimal TotalPrice { get; set; }

        /// <summary>
        /// 销售员
        /// </summary>
        public int? SalesUserId { get; set; }

        public string? SaveImage { get; set; }

        public IList<CreateTraineeOrderDetailDTO> TraineeOrderDetailList { get; set; }

       
    }

    public class CreateTraineeOrderResponse
    {
        public int TraineeOrderId { get; set; }
    }


    public class TraineeOrderRecommendTermDetailDTO
    {
        /// <summary>
        /// 推荐项目ID
        /// </summary>
        public int RecommendTermId { get; set; }


        public int Num { get; set; }
    }

    public class CreateTraineeOrderDetailDTO
    {
        /// <summary>
        /// 购买课程类型 
        /// </summary>
        public int BuyCourseTypeId { get; set; }


        /// <summary>
        /// 教练ID
        /// </summary>
        public int? CoachId { get; set; }


        /// <summary>
        /// 学员ID（可以为子账号ID）
        /// </summary>
        public int TraineeId { get; set; }


        /// <summary>
        /// 购买课程数
        /// </summary>
        public int BuyCourseNum { get; set; }


        public IList<TraineeOrderRecommendTermDetailDTO> TraineeOrderRecommendTermDetailDTOList { get; set; }
    }

    public class TraineeOrderPaymentRequest
    {
        /// <summary>
        /// 订单ID
        /// </summary>
        public int TraineeOrderId { get; set; }
    }

    public class TraineeOrderQuery
    {
        /// <summary>
        /// 机构ID
        /// </summary>
        public int InstitutionId { get; set; }


        /// <summary>
        /// 付款状态  0=未付 1=已付
        /// </summary>
        public int? PaymentStatus { get; set; }
    }

    public class TraineeOrderQuery2
    { 
        public string Date { get; set; }
    }
}
